const { defineConfig } = require('@vue/cli-service');

module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  publicPath: './',
  runtimeCompiler: true,
  devServer: {
    host: '192.168.79.1',
    port: '7070',
    historyApiFallback: true, // 重定向所有未匹配的请求到 index.html
    proxy: {
      '/api': {
        target: 'http://localhost:7071',
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  }
});